<!DOCTYPE html>
<html lang="en">
<head>
	<title></title>
	<meta charset="UTF-8"/>
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
	<link rel="stylesheet" href="__PUBLIC__/Admin/css/bootstrap.min.css?v={#$Think.config.ADMIN_VERSION_VAL}"/>
	<link rel="stylesheet" href="__PUBLIC__/Admin/css/bootstrap-responsive.min.css?v={#$Think.config.ADMIN_VERSION_VAL}"/>
	<link rel="stylesheet" href="__PUBLIC__/Admin/css/uniform.css?v={#$Think.config.ADMIN_VERSION_VAL}"/>
	<link rel="stylesheet" href="__PUBLIC__/Admin/css/matrix-style2.css?v={#$Think.config.ADMIN_VERSION_VAL}"/>
	<link rel="stylesheet" href="__PUBLIC__/Admin/css/matrix-media.css?v={#$Think.config.ADMIN_VERSION_VAL}"/>
	<link rel="stylesheet" href="__PUBLIC__/Admin/font-awesome/css/font-awesome.css?v={#$Think.config.ADMIN_VERSION_VAL}"/>
	<link rel="stylesheet" href="__PUBLIC__/Admin/css/changyun.css?v={#$Think.config.ADMIN_VERSION_VAL}"/>
	<link rel="stylesheet" href="__PUBLIC__/umeditor/themes/default/css/umeditor.css">
	<link rel="stylesheet" href="__PUBLIC__/filemanage/app.css?v={#$Think.config.ADMIN_SOURCE_VERSION}">
	<link rel="stylesheet" href="//at.alicdn.com/t/font_783249_m68ye1gfnza.css">
	<script src="//at.alicdn.com/t/font_783249_e5yrsf08rap.js"></script>
	<style>
		.control-group{
			font-size: 14px;
		}
		.control-group .controls label {
			display: inline-block;
		}

		.control-group .controls {
			margin-top: 5px;
		}

		ul, li {
			list-style: none;
		}

		.upload_img_list {
			width: 100%;
			display: block;
		}

		.upload_img_list li {
			float: left;
			margin-right: 5px;
			margin-bottom: 10px;
		}

		.upload_img_list li img {
			width: 80px;
			height: 80px;
			border: 1px solid #cccccc;
			padding: 1px;
		}

		.tab_on_select {
			background: #5bb75b;
		}

		.tab_on_select a {
			color: #ffffff;
		}
	</style>
	<script>
	var BASE_URL = '{#$base_url}';
	var STORE_URL = "{#$admin_url}";
	</script>
</head>
<body>
<div id="content">

	<include file="Public/maintop"/>

	<div class="container-fluid" style="padding:0px 10px;">
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="cyz-m-tab">
						<ul class="cyz-m-tab-title">
							<li class="cyz-m-this" data-toggle="nav_tab" href="#tab1">基本信息</li>
						</ul>
					</div>
					<div class="widget-content">
						<form action="{#$this_url_action}" method="post" class="form-horizontal" id="form_basic_validate">
							<div class="widget-content nopadding">
								<div class="control-group">
									<label class="control-label"><span class="cyzFontRed">* </span>姓名 :</label>
									<div class="controls">
										{#$info.c_cn_true_name}
									</div>
								</div>
								<div class="control-group">
									<label class="control-label"><span class="cyzFontRed">* </span>头像 :</label>
									<div class="controls">
										<div class="upload_img_list">
											<li><img src="{#$info.c_touxiang}"/></li>
										</div>
									</div>
								</div>

								<div class="control-group">
									<label class="control-label">二维码:</label>
									<div class="controls">
										<div class="upload_img_list">
											<li><img src="{#$info.c_weixin_img}"/></li>
										</div>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label"><span class="cyzFontRed">* </span>手机 :</label>
									<div class="controls">
										{#$info.c_phone}
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">微信号 :</label>
									<div class="controls">
										{#$info.c_weixin}
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">标签 :</label>
									<div class="controls">
										<volist name="info.zhiye_label" id="label">
											<a href="javascript:void(0);" class="btn btn-mini btn-success" style="margin-left: 10px">{#$label}</a>
										</volist>
									</div>
								</div>

								<div class="control-group">
									<label class="control-label">地址 :</label>
									<div class="controls">
										{#$info.c_address}
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">简介 :</label>
									<div class="controls">
										{#$info.jianjie}
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">广场展示 :</label>
									<div class="controls">
										{#$info.square_is_show_title}
									</div>
								</div>

								<div class="control-group">
									<label class="control-label">创建时间 :</label>
									<div class="controls">
										{#$info.add_time|time_format}
									</div>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<textarea id="upload_editor" style="width: 0;height: 0;display: none;"></textarea>
<script src="__PUBLIC__/Admin/js/jquery.min.js"></script>
<script src="__PUBLIC__/Admin/js/jquery.ui.custom.js"></script>
<script src="__PUBLIC__/Admin/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/Admin/js/jquery.uniform.js"></script>
<script src="__PUBLIC__/Admin/js/matrix.js"></script>
<script src="__PUBLIC__/Admin/js/matrix.tables.js"></script>
<script src="__PUBLIC__/js/layer/layer.js"></script>
<script src="__PUBLIC__/js/Validform.min.js"></script>
<script src="__PUBLIC__/js/laydate/laydate.js"></script>
<script src="__PUBLIC__/ueditor/ueditor.config.js" type="text/javascript"></script>
<script src="__PUBLIC__/ueditor/ueditor.all.js?v=123456" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/lang/zh-cn/zh-cn.js"></script>
<script>

function showInfo(card_type) {
	if (card_type == 1 || card_type == 4 || card_type == 5 || card_type == 6 || card_type == 7) {
		$("#c_eg_true_name").hide();
		$("#c_eg_position").hide();

	} else if (card_type == 2) {
		$("#c_eg_true_name").show();
		$("#c_eg_position").show();

	} else if (card_type == 3) {
		$("#c_eg_true_name").show();
		$("#c_eg_position").show();
		$("#c_telephone").show();
		$("#c_fax").hide();
	} else {
		$("#c_eg_true_name").show();
		$("#c_eg_position").show();
	}
}

var ue_uploader = UE.getEditor('upload_editor', {
	autoHeightEnabled: false,
	serverUrl: "{#:U('NewUpload/upload')}"
});

function upOneImage(fname) {
	ue_uploader.ready(function() {
		var pickey = 1;
		ue_uploader.addListener('beforeInsertImage', function(t, arg) {
			if (pickey == 1) {
				$("#lit_pic_" + fname).html('<li><img src="' + arg[0].src + '" /></li>');
				$("#lit_pic_" + fname + "_value").val(arg[0].src);
			}
			pickey++;
		});
	});
	var myImage = ue_uploader.getDialog("insertimage");
	myImage.render();
	myImage.open();
}
</script>
<script type="text/javascript">
$(function() {
	var loadi = null;
	var demo1 = $("#form_basic_validate").Validform({
		tiptype: 3,
		ajaxPost: true,
		postonce: true,
		tiptype: function(msg, o, cssctl) {
			if (!o.obj.is("form")) {
				var objtip = o.obj.siblings(".Validform_checktip");
				cssctl(objtip, o.type);
				objtip.text(msg);
			}
		},
		beforeSubmit: function(curform) {
			loadi = layer.load('表单正在处理中，请稍等 ...');
		},
		callback: function(data) {
			layer.close(loadi);
			if (data.status == 1) {
				layer.alert(data.msg, {icon: 1}, function() {
					window.location.href = "{#:U('index')}";
				});
			} else {
				layer.alert(data.msg, {icon: 0});
			}
		}
	});

	$("img").click(function() {
		var img_url = $(this).attr('src');
		layer.open({
			type: 1,
			title: false,
			closeBtn: 0,
			area: ['600px', '600px'],
			skin: 'layui-layer-nobg',
			shadeClose: true,
			content: '<img src="' + img_url + '" />'
		});
	});
});
</script>
</body>
</html>
